@echo off
title Deploying Demo...
echo Deploying Demo...

cd .\nimbus-demo
echo.
echo Image Build..............
docker build -t regwmsuat.azurecr.io/nimbus/demo:latest .

echo.
echo Image Push..............
docker push regwmsuat.azurecr.io/nimbus/demo:latest

echo.
echo K8s Deploy..............
kubectl apply -f ..\k8s\test\demo\manifest.yml
kubectl rollout restart deployment nimbus-demo -n nimbus
timeout /nobreak /t 5

echo.
echo Delete Image..............
docker rmi regwmsuat.azurecr.io/nimbus/demo:latest
